<?php
declare (strict_types = 1);

namespace app\api\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Category extends Model
{
    //定义分类-品牌关联关系
    public function brands()
    {
        return $this->hasMany(Brand::class, 'cate_id', 'id');
    }

}
